package com.example.controller;

import com.example.MyJob;
import com.example.domain.Dish;
import com.example.domain.Menu;
import com.example.mapper.DishMapper;
import com.example.service.MenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class testController {

    @Autowired
    private MyJob myJob;

    @RequestMapping("/get")
    public String get(){
        myJob.spider();

        return "spider";
    }
}
